<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
    <div class="row ">
        <div class="col-sm-2 col-sm-offset-10">
            <button class="btn btn-block btn-info" ng-click="add()">添加公共广告</button> 
        </div>
        
    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-2 text-center">企业名称</th>
                    <th class="col-md-1 text-center">广告图片</th>
                    <th class="col-md-2 text-center">提示标题</th>
                    <th class="col-md-1 text-center">提示内容</th>
                    <th class="col-md-1 text-center">状态</th> 
                    <th class="col-md-1 text-center">开启关闭</th>                                       
                    <th class="col-md-1 text-center">创建时间</th>
                    <th class="col-md-1 text-center">更新时间</th>
                    <th class="col-md-2 text-center">操作</th>        
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="text-center">{{obj.corporate_name}}</td>
                    <td class="text-center">
                        <img ng-src="{{obj.adver_img}}" class="img-responsive" width="100%" height="100%">
                    <!--<a ng-click="seeadver_img(obj.adver_img)" class="btn btn-info btn-xs">查看广告图片</a>            -->
                    </td>
                    <td class="text-center">{{obj.prompt_title}}</td>
                    <td class="text-center" style='width:50px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;' title='{{obj.prompt_info}}'>{{obj.prompt_info.substring(0,15)+'...'}}</td>
                    <td class="text-center">
                        <p class="" ng-show="obj.state == '0'">使用中</p>
                        <p class="" ng-show="obj.state == '1'">未使用</p>
                    </td>
                    <td class="">
                        <label class="i-switch bg-success" ng-init="obj.isSelected" style="margin-left:25%">
                            <input type="checkbox" ng-model="obj.isSelected" ng-change="onChange(obj.isSelected, obj.id, obj.state)">
                            <i></i>
                        </label>
                        <!--<input
                            bs-switch
                            type="checkbox" 
                            ng-model="obj.isSelected"
                            switch-size="mini"
                            ng-change = "onChange(obj.isSelected,obj.id,obj.state)"
                            > -->
                    </td>
                    <td class="text-center">{{obj.create_time}}</td>
                    <td class="text-center">{{obj.update_time}}</td>        
                    <td class="text-center">
                         <a ng-click="edit(obj.id)" class="btn btn-info btn-xs">编辑</a>
                        <a ng-click="delete(obj.id)" class="btn btn-danger btn-xs">删除</a>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>
        

